package wqh.pojo;

import java.util.List;

/**
 * Created by devts on 2016/9/26.
 */
public class SensorTree {

    private Integer id;
    private String name;
    private Integer parent_id;
    private Byte level;
    private List<SensorTree> children;

    public SensorTree()
    {

    }

    public SensorTree(Integer id, String name, Integer parent_id, Byte level) {
        this.id = id;
        this.name = name;
        this.parent_id = parent_id;
        this.level = level;
    }

    @Override
    public String toString() {
        return "SensorTree{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", parent_id=" + parent_id +
                ", level=" + level +
                ", children=" + children +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getParent_id() {
        return parent_id;
    }

    public void setParent_id(Integer parent_id) {
        this.parent_id = parent_id;
    }

    public Byte getLevel() {
        return level;
    }

    public void setLevel(Byte level) {
        this.level = level;
    }

    public List<SensorTree> getChildren() {
        return children;
    }

    public void setChildren(List<SensorTree> children) {
        this.children = children;
    }
}
